[#-- 分页实现,进行样式修改，　span 的影响，要修改对span 的影响，当没有下一页的时候就显示模糊的效果 --]
[#if pagination??]

	<div id="pages">
	<span>共${pagination.tbTotalPages}页</span>
[#if pagination.firstPage]
	<span class="disabled"> |<  首页</span><span class="disabled"> <  上一页</span>[#t/]
[#else]
	<a href="/category.htm?catid=${catid}&sort=${sort}&keyword=[#if mykeyword!="null"]${mykeyword?url}[/#if]&startPrice=${startPrice}&endPrice=${endPrice}&startCredit=${startCredit}&endCredit=${endCredit}&pageNo=1"> |<  首页</a>
	<a href="/category.htm?catid=${catid}&sort=${sort}&keyword=[#if mykeyword!="null"]${mykeyword?url}[/#if]&startPrice=${startPrice}&endPrice=${endPrice}&startCredit=${startCredit}&endCredit=${endCredit}&pageNo=${pagination.prePage}"> <  上一页</a>
[/#if]
[#if pageNo-5 gt 1]
	[#if pagination.tbTotalPages gt pageNo+4]
		[#list pageNo-5..pageNo+4 as i]
			[#if i = pageNo]
				<span class="current">${i}</span>
			[#else]
				<a href="/category.htm?catid=${catid}&sort=${sort}&keyword=[#if mykeyword!="null"]${mykeyword?url}[/#if]&startPrice=${startPrice}&endPrice=${endPrice}&startCredit=${startCredit}&endCredit=${endCredit}&pageNo=${i}">${i}</a>
			[/#if]
		[/#list]
	[#else]
		[#list pagination.pageNo-9..pagination.pageNo as i]
			[#if i = pageNo]
				<span class="current">${i}</span>
			[#else]
				<a href="/category.htm?catid=${catid}&sort=${sort}&keyword=[#if mykeyword!="null"]${mykeyword?url}[/#if]&startPrice=${startPrice}&endPrice=${endPrice}&startCredit=${startCredit}&endCredit=${endCredit}&pageNo=${i}">${i}</a>
			[/#if]
		[/#list]
	[/#if]
[#else]
	[#if pagination.tbTotalPages gt 10]
		[#list 1..10 as i]
			[#if i = pageNo]
				<span class="current">${i}</span>
			[#else]
				<a href="/category.htm?catid=${catid}&sort=${sort}&keyword=[#if mykeyword!="null"]${mykeyword?url}[/#if]&startPrice=${startPrice}&endPrice=${endPrice}&startCredit=${startCredit}&endCredit=${endCredit}&pageNo=${i}">${i}</a>
			[/#if]
		[/#list]
	[#else]
		[#list 1..pagination.tbTotalPages as i]
			[#if i = pageNo]
				<span class="current">${i}</span>
			[#else]
				<a href="/category.htm?catid=${catid}&sort=${sort}&keyword=[#if mykeyword!="null"]${mykeyword?url}[/#if]&startPrice=${startPrice}&endPrice=${endPrice}&startCredit=${startCredit}&endCredit=${endCredit}&pageNo=${i}">${i}</a>
			[/#if]
		[/#list]
	[/#if]
[/#if]
[#if pagination.lastPage]	
	<span class="disabled"> 下一页  ></span><span class="disabled"> 尾页  >|</span>
[#else]
	<a href="/category.htm?catid=${catid}&sort=${sort}&keyword=[#if mykeyword!="null"]${mykeyword?url}[/#if]&startPrice=${startPrice}&endPrice=${endPrice}&startCredit=${startCredit}&endCredit=${endCredit}&pageNo=${pagination.nextPage}" class="next-page">下一页  > </a>
	<a href="/category.htm?catid=${catid}&sort=${sort}&keyword=[#if mykeyword!="null"]${mykeyword?url}[/#if]&startPrice=${startPrice}&endPrice=${endPrice}&startCredit=${startCredit}&endCredit=${endCredit}&pageNo=${pagination.tbTotalPages}">尾页  >| </a>
[/#if]
</div>

[/#if]

